cmake_minimum_required (VERSION 2.8)
project(dome CXX)

find_package(SDL2 REQUIRED)  

include_directories(${SDL2_INCLUDE_DIRS})  

set(SKIA_LIB /usr/skia/out/Release-x64/libskia.a) 
set(SKIA_INCLUDE /usr/skia) 
set(SDL2_TTF_INCLUDE_DIRS /usr/include/SDL2_ttf) 
set(SDL2_TTF_LIBRARIES SDL2_ttf) 
link_directories(${SDL2_LIBRARY_DIRS})
 
aux_source_directory(. DIR_SRC)
add_executable (demo ${DIR_SRC})
target_link_libraries(demo ${SDL2_LIBRARIES} ${SDL2_TTF_LIBRARIES} ${SKIA_LIB})  
target_include_directories(demo PRIVATE ${SDL2_INCLUDE_DIRS} ${SDL2_TTF_INCLUDE_DIRS} ${SKIA_INCLUDE})
